package com.css.dzj.dzjdzqs.modules.apaction.aprandomplan.entity;

import javax.persistence.*;
import java.util.Objects;
//JG_ZTK_JGXN_SSJYGK_SPOT_CHECK    双随机一公开数据的年度计划抽查的监管对象信息
@Entity
@Table(name = "JG_ZTK_JGXN_SSJYGK_SPOT_CHECK", schema = "DZJJH", catalog = "")
public class JgZtkJgxnSsjygkSpotCheckEntity {
    private String planId;
    private String checkObjectName;
    private String checkObjectId;
    private String enterpriseCreditCode;

    @Id
    @Column(name = "Plan_ID")
    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    @Basic
    @Column(name = "Check_Object_Name")
    public String getCheckObjectName() {
        return checkObjectName;
    }

    public void setCheckObjectName(String checkObjectName) {
        this.checkObjectName = checkObjectName;
    }

    @Basic
    @Column(name = "Check_Object_Id")
    public String getCheckObjectId() {
        return checkObjectId;
    }

    public void setCheckObjectId(String checkObjectId) {
        this.checkObjectId = checkObjectId;
    }

    @Basic
    @Column(name = "Enterprise_Credit_Code")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgZtkJgxnSsjygkSpotCheckEntity that = (JgZtkJgxnSsjygkSpotCheckEntity) o;
        return Objects.equals(planId, that.planId) &&
                Objects.equals(checkObjectName, that.checkObjectName) &&
                Objects.equals(checkObjectId, that.checkObjectId) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(planId, checkObjectName, checkObjectId, enterpriseCreditCode);
    }
}
